import request from '@/utils/request'
import { AxiosPromise } from 'axios'
import { LoginParams, LoginResult } from './types'

export function loginApi (data: LoginParams): AxiosPromise<LoginResult> {
    return request({
        url: '/api/adminapi/login',
        method: 'post',
        data: data
    })
}